<pre><code class="javascript">
var treeData = [{
    text: "Root node",
    state: {
        opened: true
    },
    children: [{
            text: "Child node 1",
            id: "111",
            state: {
                selected: true
            },
            icon: "fa fa-flash"
        }, {
            text: "Child node 2",
            state: {
                disabled: true
            }
        },
        "Child node 3"
    ]
}];

$p.dataTree("#tree", {
    plugins: ["checkbox", "search", "added"],
    core: {
        data: treeData
    },
    search: {
        input: "#input_search"
    },
    added: {
        numberSpinner: {
            decimals: 2,
            min: -10,
            max: 100
        }
    },
    change: function(e, node) {
        console.log(node);
    }
});
</code></pre>
